def common_assert(case, expect_result, response):
    """
    功能：断言响应结果
    :param case: 测试用例对象
    :param expect_result: 预期结果
    :param response: 响应结果对象
    :return: None
    """

    # 断言
    json_data = response.json()
    case.assertEqual(expect_result.get('status_code'), response.status_code)
    case.assertEqual(expect_result.get('success'), json_data.get("success"))
    case.assertEqual(expect_result.get('code'), json_data.get("code"))
    case.assertIn(expect_result.get('message'), json_data.get("message"))
